package com.samebuilding.service.impl;

import java.util.List;

import com.samebuilding.dao.CityDAO;
import com.samebuilding.service.CityService;

public class CityServiceImpl implements CityService {

	CityDAO cityDAO;
	public CityDAO getCityDAO() {
		return cityDAO;
	}
	public void setCityDAO(CityDAO cityDAO) {
		this.cityDAO = cityDAO;
	}
	public List findByProvince(int provinceCode) {
		return cityDAO.findByProvince(provinceCode);
	}
	public int findCode(String name) {
		return cityDAO.findCode(name);
	}
	public String findName(int code) {
		// TODO Auto-generated method stub
		return cityDAO.findName(code);
	}

}
